//
//  Featured_model11_CollectionViewCell.m
//  TodatPlay
//
//  Created by dllo on 16/8/31.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "Featured_model11_CollectionViewCell.h"

@interface Featured_model11_CollectionViewCell ()
@property (nonatomic, copy) leftItem left;
@property (nonatomic, copy) rightItem right;
@end

@implementation Featured_model11_CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self createTap];
}
- (void)createTap {
    UITapGestureRecognizer *leftTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickLeftItem:)];
     UITapGestureRecognizer *rightTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickRightItem:)];
    self.leftImageView.userInteractionEnabled = YES;
    self.rightImageView.userInteractionEnabled = YES;
    [self.leftImageView addGestureRecognizer:leftTap];
    [self.rightImageView addGestureRecognizer:rightTap];
    
}
- (void)left:(leftItem)left right:(rightItem)right {
    self.left = left;
    self.right = right;
}
- (void)clickLeftItem:(UITapGestureRecognizer *)tap {
    
    self.left(tap);
}
- (void)clickRightItem:(UITapGestureRecognizer *)tap {
    
    self.right(tap);
}
@end
